package com.jerry.shop.form;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

@Data
public class OrderForm {

    @NotEmpty(message = "买家id必填")
    private String id;                   //买家id
    @NotEmpty(message = "姓名必填")
    private String name;                 //买家姓名
    @NotEmpty(message = "手机号必填")
    private String phone;                //买家手机号
    @NotEmpty(message = "地址必填")
    private String address;             //买家地址

    @NotEmpty(message = "购买商品不能为空")
    private String items;               //商品列表
}
